package org.github.manx98.jlibhac.fssystem;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 21:56
 */
public enum NcaEncryptionType {
    Auto,
    None,
    XTS,
    AesCtr,
    AesCtrEx;
    public static NcaEncryptionType valueOf(byte value) {
        for (NcaEncryptionType type : NcaEncryptionType.values()) {
            if(type.ordinal() == value) return type;
        }
        throw new IllegalArgumentException("Unknown NcaEncryptionType value: " + value);
    }
}
